//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "strings\fn_removeLineBreaks.sqf"
#include <tmf_constants.h>
#include <tmf_macros.h>

TRACE_1("Start",_this);
TMFPROFILERSTART;

private ["_msg", "_msg_chat_a", "_i", "_c"];
_msg = _this;
_msg_chat_a = toArray (_msg);
for "_i" from 0 to (count _msg_chat_a - 2) do {
	_c = _msg_chat_a select _i;
	if (_c == 92) then {
		if ((_msg_chat_a select (_i + 1)) in [78,110]) then {
			_msg_chat_a set [_i, 32];
			_i = _i + 1;
			_msg_chat_a set [_i, -1];
		};
	};
};
_msg_chat_a = _msg_chat_a - [-1];

TRACE("End");
TMFPROFILERSTOP;
toString (_msg_chat_a)